package designs.models.bridge;

public class BuildingCost extends ArchitectureCose {

	public BuildingCost(BuildingDesign design ,double unitPrice) {
		this.design = design;
		this.unitPrice = unitPrice;
	}

	@Override
	public double giveCost() {
		double area = design.computerArea();
		return area * unitPrice;
	}

}
